<template>
  <div id="name">
    <nav>
      <span>我的</span>
      <router-link to="">
        <img src="/static/img/e.png" alt="">
        <span>设置</span>
      </router-link>
    </nav>
    <div class="cont">
      <div class="hua">
        <router-link to="" class="tab">
          <img src="/static/img/aa.png" alt="">
        </router-link>

        <div>
          <h5>欢迎加入</h5>
          <p>我所有的朋友都是吃货</p>
        </div>
      </div>
      <div class="register">
        <router-link tag="button" to="">登录/免费注册</router-link>
      </div>
      <div class="xuan">
        <ul>
          <router-link to="" tag="li">
            <img src="/static/img/w.png" alt="">
            <span>我的主页</span>
          </router-link>
          <router-link to="" tag="li">
            <img src="/static/img/q_03.jpg" alt="">
            <span>我的菜单</span>
          </router-link>
          <router-link to="" tag="li">
            <img src="/static/img/q_06.jpg" alt="">
            <span>我的收藏</span>
          </router-link>
          <router-link to="" tag="li">
            <img src="/static/img/q_11.jpg" alt="">
            <span>我的草稿</span>
          </router-link>
          <router-link to="" tag="li">
            <img src="/static/img/q_16.jpg" alt="">
            <span>我的任务</span>
          </router-link>
          <router-link to="" tag="li">
            <img src="/static/img/q_14.jpg" alt="">
            <span>福利社</span>
          </router-link>
          <router-link to="" tag="li">
            <img src="/static/img/q_25.jpg" alt="">
            <span>账号管理</span>
          </router-link>
          <router-link to="" tag="li">
            <img src="/static/img/q_22.jpg" alt="">
            <span>消息中心</span>
          </router-link>
          <router-link to="" tag="li">
            <img src="/static/img/q_28.jpg" alt="">
            <span>帮助与反馈</span>
          </router-link>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data: () => ({}),
  mounted() {
    this.$http("/api/menu/silderPage")
      .then(result => {
        console.log(result);
      })
      .catch(err => {
        console.log(err);
      });
  }
};
</script>

<style lang="scss">
#name {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  > nav {
    width: 100%;
    height: 2.5rem;
    background: #ff6767;
    // display: flex;
    position: relative;
    > span {
      display: block;
      flex-grow: 1;
      text-align: center;
      line-height: 2.5rem;
      color: white;
    }
    > a {
      display: block;
      width: 3rem;
      height: 100%;
      position: absolute;
      right: 0;
      top: 0;
      font-size: 10px;
      color: white;
      text-align: center;
      padding-top: 2%;
      > img {
        width: 30%;
      }
      > span {
        display: block;
      }
    }
  }
  .cont {
    flex-grow: 1;
    background: #f0eded;
    .hua {
      width: 100%;
      padding: 5%;
      display: flex;
      .tab {
        width: 3rem;
        background: #e9eaea;
        border-radius: 50%;
        overflow: hidden;
        text-align: center;
        > img {
          width: 80%;
        }
      }
      > div {
        padding-left: 5px;
        padding-top: 5px;
        > h5 {
          font-size: 20px;
        }
        > p {
          padding-top: 10px;
          color: #b0b0b0;
          font-size: 12px;
        }
      }
    }
  }
  .register {
    width: 100%;
    text-align: center;
    > button {
      width: 90%;
      height: 2rem;
      border: none;
      border-radius: 5px;
      background: #ff6767;
      color: white;
    }
  }
  .xuan {
    width: 100%;
    > ul {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      padding-top: 1rem;
      justify-content: space-around;

      > li {
        width: 33%;
        height: 4rem;
        text-align: center;
        background: white;
        margin-bottom: 1px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        > img {
          width: 20%;
          margin: 0 auto;
        }
        > span {
          display: block;
          font-size: 12px;
        }
      }
    }
  }
}
</style>
